<!--
 * @Author: 杨光辉(GerhardYang)
 * @Date: 2021-06-04 11:17:04
 * @LastEditors: 予程_hepch
 * @LastEditTime: 2022-04-13 12:56:46
 * @Description: file content
 * @Copyright: 超图软件华中平台客户中心 (SuperMap Software Co., Ltd. -Central China Platform)
-->

<!DOCTYPE html>
<html lang="en">

    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width,initial-scale=1.0">
        <link rel="icon" href="<%= BASE_URL %>favicon.ico">
        <title>湖南省交通地理信息一张图</title>
        <link rel="stylesheet" href="./css/index.css">

        </script>
    </head>

    <body>
        <noscript>
            <strong>
                浏览器没有开启JavaScript,请检查浏览器设置。
            </strong>
        </noscript>
        <script>
            // 云瑶服务
            window.getSuspendedHost = function () {
                return "https://higis.img.net/service/wmts"
            }

            window.servicesPorts = {
                es: 8060,
                boot: '8060/backend',
                iserver: 8060,
                iportal: 8060
            };

            //判断url是否包含host
            window.getServiceUrl = function (url, port) {
                let serviceUrl = "";
                if (url.indexOf("://") > 0) {
                    serviceUrl = url;
                } else {
                    // 匹配测试环境
                    if (document.location.hostname == "localhost" || document.location.hostname == "127.0.0.1") {
                        serviceUrl = document.location.protocol + "//" + "10.201.56.2" + ":" + port + url;
                    } else {
                        serviceUrl = document.location.protocol + "//" + document.location.hostname + ":" + port + url;
                    }

                }
                
                return serviceUrl;
            };

        </script>
        <div id="app">
            <div id="loader-wrapper">
                <div id="loader"></div>
                <div class="loader-section section-left"></div>
                <div class="loader-section section-right"></div>
                <div class="load_title">系统正在加载，请耐心等待...</div>
            </div>
        </div>
        <!-- built files will be auto injected -->
    </body>

</html>